package cn.zust.edu.dao;

import cn.zust.edu.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserJpaDao extends JpaRepository<UserEntity,Integer> {
    @Query("from UserEntity  user where MOD(user.id,2)=0")
    public List<UserEntity> findByOodId();
}
